/*
@author dgo
@date 4 nov. 06
*/
package ch.hoth.java.joocal;

import com.google.gdata.data.DateTime;
import com.google.gdata.data.PlainTextConstruct;
import com.google.gdata.data.extensions.EventEntry;
import com.google.gdata.data.extensions.When;

public class GEventsFactory {
	
	public static int compter = 0;
	
	public static EventEntry getEvent(){
		
		EventEntry entry = new EventEntry();
		entry.setTitle(new PlainTextConstruct("test " + compter++));
		When eventTimes = new When();
		eventTimes.setStartTime(DateTime.parseDateTime("2006-04-17T15:00:00+02:00"));
		eventTimes.setEndTime(DateTime.parseDateTime("2006-04-17T18:00:00+02:00"));
		entry.addTime(eventTimes);
		
		return entry;
	}

}
